Getting Ready to Work With Movies
The Movie Toolbox maintains state information for every application using it. In order to set up this information for your application, you must initialize the Movie Toolbox. You initialize the Movie Toolbox by calling theEnterMovies
function (described on page 2-71).You should call the
EnterMovies
function after you have initialized other Macintosh managers. Before calling this function you should make sure that the Movie Toolbox is available by calling the Gestalt Manager, as discussed in "Determining Whether the Movie Toolbox Is Installed" on page 2-25.If you are writing a standard application, you do not need to call the
ExitMovies
function. Call theExitToShell
routine instead.If you are writing a code resource, you may need to call the
ExitMovies
function (described on page 2-72), which allows the Movie Toolbox to clean up after your application has finished. After callingExitMovies
, you cannot make further calls to the Movie Toolbox.